<?php 
/*
 * @component AlphaGetCouponCode
 * @copyright Copyright (C) 2008-2009 Bernard Gilly
 * @license : GNU/GPL
 * @Website : http://www.alphaplug.com
 */
defined('_JEXEC') or die('Restricted access');

function com_uninstall() 
{
	$db	=& JFactory::getDBO(); 
	
	// uninstall rule
	$query = "DELETE FROM #__alpha_userpoints_rules WHERE plugin_function='plgaup_alphagetcouponcode_vm'";
	$db->setQuery( $query );
	$db->query();

}
?>